CTC+pytorch编译配置warp-CTC遇见ModuleNotFoundError: No module named 'warpctc_pytorch._warp_ctc'错误

如果你得到如下错误:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/my/dirwarp-ctc/pytorch_binding/warpctc_pytorch/__init__.py", line 8, in <module>
    from ._warp_ctc import lib as _lib, ffi as _ffi
ModuleNotFoundError: No module named 'warpctc_pytorch._warp_ctc'

运行如下命令

cd ../build && cp libwarpctc.dylib /usr/local/anaconda3/lib

posted @ 2019-01-16 21:27  pogeba  阅读(3515)  评论(0编辑  收藏  举报